﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Display.peddlerUI {
    import flash.events.*;
    import flash.utils.*;
    import Display.DialogUI.*;
    import org.aswing.*;
    import Classes.*;
    import org.aswing.ext.*;
    import Display.aswingui.*;

    public class PeddlerWaringView extends GenericDialogView {

        public function PeddlerWaringView(_arg1:Dictionary, _arg2:String="", _arg3:String="", _arg4:int=0, _arg5:Function=null, _arg6:String="", _arg7:int=0, _arg8:String="", _arg9:Function=null, _arg10:String=""){
            super(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _arg10);
        }
        override protected function createCloseButtonPanel():JPanel{
            var _local1:JPanel = new JPanel(ASwingHelper.softBoxLayoutVertical);
            var _local2:JButton = ASwingHelper.makeMarketCloseButton();
            _local2.addEventListener(MouseEvent.CLICK, onCancelX, false, 0, true);
            _local1.append(_local2);
            ASwingHelper.setEasyBorder(_local2, 3, 0, 0, 3);
            return (_local1);
        }
        override protected function createTextArea():JPanel{
            var _local1:JPanel = new JPanel(new BorderLayout());
            var _local2:MultilineLabel = new MultilineLabel(m_message);
            _local2.setForeground(new ASColor(EmbeddedArt.blueTextColor, 1));
            _local2.setFont(new ASFont(EmbeddedArt.DEFAULT_FONT_NAME_BOLD, 16, false));
            _local2.setPreferredHeight(60);
            _local2.setEditable(false);
            _local2.setEnabled(false);
            ASwingHelper.prepare(_local2);
            _local1.append(ASwingHelper.horizontalStrut(128), BorderLayout.WEST);
            _local1.append(_local2, BorderLayout.CENTER);
            _local1.append(ASwingHelper.horizontalStrut(40), BorderLayout.EAST);
            _local1.append(ASwingHelper.verticalStrut(15), BorderLayout.NORTH);
            _local1.setPreferredWidth(this.m_bgAsset.width);
            ASwingHelper.prepare(_local1);
            return (_local1);
        }
        override protected function makeBackground():void{
            super.makeBackground();
        }

    }
}//package Display.peddlerUI 
